package com.example.lottery_system.contoller.result;

import com.example.lottery_system.service.enums.ActivityPrizeTiers;
import lombok.Data;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.List;

@Data
public class GetActivityDetailResult implements Serializable {

    // 活动信息
    private Long activityId;
    private String activityName;
    private String description;
    private Boolean valid;

    // 奖品信息（列表）
    private List<Prize> prizes;

    // 人员信息（列表）
    private List<User> users;

    @Data
    public static class Prize {
        private Long prizeId;
        private String name;
        private String imageUrl;
        private BigDecimal price;
        private String description;
        /**
         * 奖品等级
         * @see ActivityPrizeTiers#getMessage()
         */
        private String prizeTierName;
        private Long prizeAmount;
        private Boolean valid;

    }

    @Data
    public static class User {
        private Long userId;
        private String userName;
        private Boolean valid;
    }
}
